Skip to content

feat: warm configured price caches on startup#66

Open
jamilahmadzai wants to merge 1 commit into
SmartDropLabs:mainfrom
jamilahmadzai:codex/smartdrop-cache-warming-25
Open

feat: warm configured price caches on startup#66
jamilahmadzai wants to merge 1 commit into
SmartDropLabs:mainfrom
jamilahmadzai:codex/smartdrop-cache-warming-25

Conversation

@jamilahmadzai

Copy link
Copy Markdown
Contributor

Closes #25

Bounty: GrantFox escrow for issue #25

Summary

  • Parse WATCHED_ASSETS into validated { code, issuer } entries with duplicate removal.
  • Warm all configured assets through the existing price oracle before the HTTP server binds.
  • Continue startup after a 30-second warm timeout and log success/failure counts.
  • Document WATCHED_ASSETS in .env.example.

Validation

  • npm ci --ignore-scripts --no-audit
  • npm test -- test/cacheWarm.test.js test/config.test.js --runInBand (8 passing)
  • npm test -- --runInBand (189 passing)
  • git diff --check

@jamilahmadzai
jamilahmadzai force-pushed the codex/smartdrop-cache-warming-25 branch from 6ca97ea to 1ec4d9d Compare July 20, 2026 08:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant